package com.whj.servicemap.service.impl;

import com.whj.internalcommon.dto.ResponseResult;
import com.whj.internalcommon.response.TrackResponse;
import com.whj.servicemap.remote.TrackClient;
import com.whj.servicemap.service.TrackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Auther: wanghaijun
 * @Date: 2023/1/20 - 01 - 20 - 11:38 
 * @Description: com.whj.servicemap.service.impl
 */

@Service
public class TrackServiceImpl implements TrackService {

    @Autowired
    private TrackClient trackClient;

    /**
     * 调用TrackClient 利用tid 生成 trid
     *
     * @param tid
     * @return
     */
    @Override
    public ResponseResult<TrackResponse> addTrack(String tid) {
        return trackClient.addTrack(tid);
    }
}
